<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.google.appengine.api.datastore.DatastoreServiceFactory" %>
<%@ page import="com.google.appengine.api.datastore.DatastoreService" %>
<%@ page import="com.google.appengine.api.datastore.Query" %>
<%@ page import="com.google.appengine.api.datastore.Entity" %>
<%@ page import="com.google.appengine.api.datastore.FetchOptions" %>
<%@ page import="com.google.appengine.api.datastore.Key" %>
<%@ page import="com.google.appengine.api.datastore.KeyFactory" %>
<%@ page import="groupware.Project" %>
<%@ page import="groupware.Tree" %>
<%@ page import="groupware.Node" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="groupware.Main" %>
<% Main main = new Main();%>
<%
 String title = (String) request.getAttribute("title");
  String authURL = (String) request.getAttribute("authURL");  
  String rurl = (String) request.getAttribute("rurl");
 
if ( main.loggedIn()) { %>
	Hey, <%= main.user.user.getNickname() %>!  <a href ="<%= authURL %>"> Logout</a>

<% } else { %>
	<a href ="<%= authURL %>"> Login</a>
<% } %>
